#ifndef DEVLIST_MODEL_H
#define DEVLIST_MODEL_H

#include "custom_ui/treemodel.h"

class DevlistModel : public TreeModel 
{
    Q_OBJECT
public:
	explicit DevlistModel(const QStringList& headers, QObject *parent = 0);
	
public:
    // 单元格设置属性
    Qt::ItemFlags flags(const QModelIndex &index) const override;
    QStringList mimeTypes() const override;
    QMimeData *mimeData(const QModelIndexList &indexes) const override;
    Qt::DropActions supportedDragActions() const override;
//    bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
//    bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;

};

#endif // DEVLIST_MODEL_H
